<template>
  <router-view>
    <div class="app-body">
      <div class="shop">
        <img src="" alt="">
        <div class="shop-bd">
          <h3>茶韵体验店</h3>
          <div class="shop-bd-time">营业时间：8:00-22:00</div>
        </div>
      </div>
      <div class="products">
        <ul class="products-category">
          <li>茶叶</li>
          <li>茶点</li>
        </ul>
        <div class="products-menu">
          <dl>
            <dt>茶叶</dt>
            <dd></dd>
          </dl>
          <dl>
            <dt>茶点</dt>
            <dd></dd>
          </dl>
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="footer-bd">
        <i class="cart" title="8"><icon id="cart"></icon></i>
        <em class="price">55</em>
      </div>
      <a class="footer-btn">点单</a>
    </div>
  </router-view>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  methods: {
    showCart () {

    },
    preOrder () {

    }
  }
}
</script>

<style lang="scss" scoped>
.shop {
  padding: 15px 10px;
  background: $bg;
  overflow: hidden;

  > img {
    float: left;
  }

  &-bd {
    margin-left: 10px;

    > h3 {
      font-size: $font-size-l;
    }

    &-time {
      margin-top: 5px;
      font-size: $font-size-s;
      color: $color-gray;
    }
  }

}

.cart {
  display: inline-block;
  font-size: 44px;
  line-height: 1;
  width: 1em;
  text-align: center;
  color: #fff;
  background: $color-primary;
  border-radius: 100%;
  vertical-align: middle;
  position: relative;

  &:after {
    content: attr(title);
    position: absolute;
    top: 0;
    right: 0;
    font-size: $font-size-xxs;
    line-height: 1.6;
    width: 1.6em;
    text-align: center;
    color: #fff;
    background: darken($color-primary, 10%);
    border-radius: 100%;
  }

  > .icon {
    font-size: 24px;
    margin: 0 0.1em 0.1em 0;
  }

  + .price {
    margin-left: 0.5em;
  }
}
</style>
